package com.core.gig.negocio;


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "TB_ORCAMENTO_SERVICO")
public class OrcamentoServico implements Serializable
{

	private static final long serialVersionUID = 5412769598399311874L;
	private Orcamento orcamento;
	private Servico servico;
	private double horas;

	@Id
	@ManyToOne
	@JoinColumn(name = "FK_ORCAMENTO_ID")
	public Orcamento getOrcamento()
	{
		return orcamento;
	}

	@Id
	@ManyToOne
	@JoinColumn(name = "FK_SERVICO_ID")
	public Servico getServico()
	{
		return servico;
	}

	@Column(name = "HORAS", nullable = false, precision = 2)
	public double getHoras()
	{
		return horas;
	}
	
	public void setOrcamento(Orcamento orcamento)
	{
		this.orcamento = orcamento;
	}

	public void setServico(Servico servico)
	{
		this.servico = servico;
	}

	public void setHoras(double horas)
	{
		this.horas = horas;
	}
}